import {get, post, del, put} from "@/apis/http/request";
import {LoginLog} from "@/apis/model/system/LoginLogModel";

/**
* 得到列表
* @param params
*/
export const getLoginLogList = (params: any) => get("/loginLog/list", params)

/**
* 得到分页列表
* @param params
*/
export const loginLogPage = (params: any) => post("/loginLog/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteLoginLogById = (id: number) => del("/loginLog/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertLoginLog = (param: LoginLog) => post("/loginLog", param)

/**
* 更新数据
* @param param
*/
export const updateLoginLog = (param: LoginLog) => put("/loginLog", param)